package tjs.study.notes.queue.producer.base;

import java.util.UUID;

public class MsgBase {
    private String id;
    private Object data;

    public MsgBase() {
    }

    public MsgBase(Object data) {
        this.id = UUID.randomUUID().toString();
        this.data = data;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
